package com.lixiaoyu.controller;

import com.lixiaoyu.entity.ExpressUser;
import com.lixiaoyu.service.UserService;
import com.lixiaoyu.service.impl.UserServiceImpl;

import java.util.HashMap;
import java.util.Map;

/**
 * 用户控制层
 */
public class UserController {

    UserService userService = new UserServiceImpl();

    //用户登录
    public Map loginExpress(ExpressUser expressUser) {

        Map<Integer,String> returnlog = userService.loginExpress(expressUser);

        return returnlog;
    }

    /**
     * 用户注册
     * @param expressUser   用户信息  实体
     * @return  返回 注册结果
     */
    public String registerUser(ExpressUser expressUser) {

        String returnRegister = userService.registerUser(expressUser);

        return returnRegister;
    }
}
